<#include "../common/layout.ftl"/>
<@layout>
<div class="well">
	<span class="label label-success">新增规则名称</span>
	<form id="form1" class="well form-horizontal" action="/pricerule/save"  method="post">
	  <table  class="control-group">
	     <tr>
	        <td><label class="control-label" for="focusedInput">名称：</label></td>
	        <td><input class="input-xlarge focused" name="telPriceRule.name" id="name" type="text"  style="height: 26" value="" ></td>
	     </tr>
	     <tr>
	        <td><label class="control-label" for="focusedInput">所属公司：</label></td>
	        <td>
	            <select id="company" name="telPriceRule.company">
                </select>
	        </td>
	     </tr>
     </table>
     <div class="form-actions">
        <button type="submit" class="btn btn-primary">确 定</button>
        <button type="reset" class="btn">重 置</button>
        <button type="button" class="btn btn-info" onclick="javascript:history.back();">返回</button>
     </div>
  </form>
  </div>
<script>
	$(function() { 
	$.ajax({
	    type:'POST',
	    url:"/driver/listLicensenum",
	    dataType:"json",
	    success:function(result){
	    	$(result.record).each(function(){
	    		$("#company").append("<option value='"+$(this).attr('company')+"'>"+$(this).attr('companyname')+"</option>");
	    	});
	    },error:function(result){
	    	alert(result);
	    }
	});
 }); 
</script>
</@layout>